DiagramElementParam

StockSharp.Diagram

The diagram element parameter.

继承自: NotifiableObject

实现: IDiagramElementParam, IPersistable, INotifyPropertyChanging, INotifyPropertyChanged, IAttributesEntity

属性

Attributes : IList<Attribute>

Атрибуты.

CanChangeValue : bool

Can change value.

CanOptimize : bool

Check can optimize parameter.

IgnoreOnSave : bool

To ignore when saving.

IsDefault : bool

The default value is specified.

LoadHandler : Func<SettingsStorage, T>

The parameter value loading handler.

Name : string

Name.

NotifyOnChanged : bool

Raise changed event when property is changed.

SaveHandler : Func<T, SettingsStorage>

The parameter value saving handler.

Type : Type

The type of the parameter value.

Value : T

The parameter value.

ValueValidating : Func<T, T, bool>

Validate the parameter value.

方法

Load(SettingsStorage)

Load settings.

storage
Settings storage.
Save(SettingsStorage)

Save settings.

storage
Settings storage.
SetBasic(bool) : DiagramElementParam<T>

To set the BasicSettingAttribute attribute for the diagram element parameter.

isBasic
Is basic parameter.

返回值: The diagram element parameter.

SetCanOptimize(bool) : DiagramElementParam<T>

To modify CanOptimize.

value
Value.

返回值: The diagram element parameter.

SetDisplay(string, string, string, int) : DiagramElementParam<T>

To set the DisplayAttribute attribute for the diagram element parameter.

groupName
The category of the diagram element parameter.
displayName
The display name.
description
The description of the diagram element parameter.
order
The property order.

返回值: The diagram element parameter.

SetEditor``1(T)

To add the attribute Attribute for the diagram element parameter.

editor
Attribute.

返回值: The diagram element parameter.

SetExpandable(bool) : DiagramElementParam<T>

To set the ExpandableObjectConverter attribute for the diagram element parameter.

expandable
Value.

返回值: The diagram element parameter.

SetNonBrowsable(bool) : DiagramElementParam<T>

To set the BrowsableAttribute attribute for the diagram element parameter.

nonBrowsable
Hidden parameter.

返回值: The diagram element parameter.

SetReadOnly(bool) : DiagramElementParam<T>

To set the ReadOnlyAttribute attribute for the diagram element parameter.

readOnly
Read-only.

返回值: The diagram element parameter.

SetValueWithIgnoreOnSave(object)

Set value and ignore it on save settings.

value
Value.
ToString() : string

Преобразовать к строковому представлению.

返回值: Строковое представление.

事件

ValueChanged : Action<T>

The parameter value change event.

ValueChanging : Action<T, T>

The parameter value change start event.